package com.equdao.car_violation_inquiry.utils;


import com.equdao.car_violation_inquiry.pojo.Result;

public class ResultUtil {
    /**
     * 成功
     * */
    public static Result success(Object object){
        Result result = new Result();
        result.setStatus(0);//0为成功
        result.setMsg("请求成功");
        result.setData(object);
        return result;
    }
	/**
	 * 失败
	 * */
    public static Result error(Integer status,String msg){
        Result result = new Result();
        result.setStatus(status);//0为成功
        result.setMsg(msg);
        return result;
    }

}
